<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>事件绑定指令</title>
</head> 
<body>
  <div id="app">
    <h3>{{count}}</h3>
    <button @click="count+=1">+1</button>
  </div>
  <script src="./lib/vue-2.6.12.js"></script>
  <script>
    const vm=new Vue({
      el:'#app',
      data:{
        count:0
      },
      methods:{
        // addCount(){
        //   this.count+=1
        // }
      }
    })
  </script>
</body>
</html>